package cn.com.greatwall.file.service;

import java.io.OutputStream;
import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.extension.service.IService;

import cn.com.greatwall.common.model.PageResult;
import cn.com.greatwall.file.model.FileInfo;

/**
 * @Author herw
 * @Time 2022-02-19 18:25:54
 * @Version 1.0
 * @Description: 文件service
 */
public interface IFileService extends IService<FileInfo> {
    FileInfo upload(MultipartFile file ) throws Exception;
    
    PageResult<FileInfo> findList(Map<String, Object> params);

    void delete(String id);

    void out(String id, OutputStream os);
}
